@layout("/common/_container.html"){
<div class="ibox float-e-margins">
	<div class="ibox-content">
		<div class="form-horizontal" id="roleDetail">
			<input type="hidden" id="id" value="${role.id!}">
			<div class="row">
				<div class="col-sm-6 b-r">
					<#input id="roleName" name="角色名称" value="${role.roleName!}" underline="true" />
					<#select id="isEnable" name="是否启用">
						<option value="1">启用</option>
						<option value="0">不启用</option>
					</#select>
				</div>
				<div class="col-sm-6">
					<#input id="roleCode" name="角色代码" value="${role.roleCode!}"/>
				</div>
			</div>
			<div class="row btn-group-m-t">
				<div class="col-sm-12 text-center">
					<#button btnCss="info" name="提交" id="ensure" icon="fa-check" click="roleDetail.submit('${action}')"/> 
					<#button btnCss="danger" name="取消" id="cancel" icon="fa-eraser" click="roleDetail.close()"/>
				</div>
			</div>
		</div>
	</div>
</div>
<script type="text/javascript">
	var isEnable = '${role.isEnable!}';
</script>
<script src="${ctxPath}/${adminPath}/role/roleDetail.js"></script>
@}
